package nl.utwente.ewi.hmi.multitouch.drivers.museg;

import java.net.DatagramPacket;
import java.net.InetAddress;
import java.net.MulticastSocket;

public class Test {

	public static void main(String[] args) throws Exception {
		MulticastSocket ms = new MulticastSocket(10002);
		
		ms.joinGroup(InetAddress.getByName("225.4.5.6"));
		
		
		byte[] buff = new byte[] { 0x01, 0x01, 0x01, 0x01 };
		DatagramPacket p = new DatagramPacket(buff, 1);
		

		
		while(true) {
			ms.receive(p);
			System.out.println("get");
		}
		
		
		
	
//		System.out.println(buff[0]);
//		System.out.println("done");
	}
}
